package cn.edu.tjnu.service.impl;

import java.util.List;

import cn.edu.tjnu.dao.IChargeInfoDao;
import cn.edu.tjnu.orm.ChargeBean;
import cn.edu.tjnu.orm.UsersBean;
import cn.edu.tjnu.service.IChargeInfoService;

public class ChargeInfoServiceImpl implements IChargeInfoService {

	
	
	private IChargeInfoDao ChargeInfoD;

	public List<ChargeBean> queryAllChargeInfo(ChargeBean chargeB) {
		List<ChargeBean> lstCharge = ChargeInfoD.queryAllChargeInfo(chargeB);
		return lstCharge;
	}
	public List<ChargeBean> queryShowChargeInfo(ChargeBean chargeB) {
		List<ChargeBean> lstCharge = ChargeInfoD.queryShowChargeInfo(chargeB);
		return lstCharge;
	}
	@Override
	public int saveChargeInfo(ChargeBean chargeB) {
		
		int i=ChargeInfoD.saveChargeInfo(chargeB);
		return i;
	}
	@Override
	public int saveConsumeChargeInfo(ChargeBean chargeB) {
		int i=ChargeInfoD.saveConsumeChargeInfo(chargeB);
		return 1;
	}
	public IChargeInfoDao getChargeInfoD() {
		return ChargeInfoD;
	}
	public void setChargeInfoD(IChargeInfoDao chargeInfoD) {
		ChargeInfoD = chargeInfoD;
	}
	

}
